package test.loengud;

/**
 * @author Ago
 *
 */
public class Hello {
	/**
	 * stuff.
	 */
	public static int y = 1, x = 100;
	   
	   public static void main(String[] args) {
	     int x=0;       
	     int z=x+0;
	     
	     System.out.println("main x,y,z: "+x+" "+y+" "+z);
	     z=world(hello(x), y);
	     System.out.println("main x,y,z: "+x+" "+y+" "+z);
	   }       
	  
	   public static void hello(int x, int z) {
		 x = z + 100;
		 System.out.println("hello(world(x, z))");
	   }
	   
	   public static int hello(int x) {
	     int y = 0;         
	     ++x;
	     while(x < 100) {
	       if (y>2) continue;
	       break;
	     }         
	     System.out.println("hello x,y: "+(x - 2)+" "+y);
	     return x;
	   }   
	   
	   public static int world(int x, int z) {
	     int y=0;	
	     y++;
	     while(y++<=3) z*=y;
	     System.out.println("world x,z++,z: "+x+" "+z+" "+z);
	     return z;
	   }
	}
